GridCore: fix calculateGroupValue comparison on apply group and sort …#32472
Merged
anna-shakhova merged 6 commits intoDevExpress:26_1from Feb 18, 2026
Merged
Conversation
…from dataSource (T1321187, T1308536)
…g and grouping after data reload
5aee64d to
60ce291
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes an internal DataGrid ColumnsController mapping issue where grouping/sorting parameters coming from the DataSource could be matched to the wrong column when calculateGroupValue is specified as a string (field name), which could cause grouping state to be lost/shifted after actions like expandAll.
Changes:
- Updated
ColumnsController.updateSortingGroupingselector matching to correctly handle stringcalculateGroupValueand avoid mis-assigning group/sort indexes to referenced columns. - Added TestCafe e2e coverage for scenarios with string
calculateGroupValue(including when the referenced field also exists as a separate column).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
packages/devextreme/js/__internal/grids/grid_core/columns_controller/m_columns_controller.ts |
Adjusts selector comparison and index assignment logic to prevent incorrect grouping/sorting mapping when calculateGroupValue is a string. |
e2e/testcafe-devextreme/tests/dataGrid/common/grouping/grouping.ts |
Adds regression e2e tests for T1321187 and T1308536 covering expandAll behavior with string calculateGroupValue. |
packages/devextreme/js/__internal/grids/grid_core/columns_controller/m_columns_controller.ts
Outdated
Show resolved
Hide resolved
Alyar666
approved these changes
Feb 13, 2026
Alyar666
requested changes
Feb 13, 2026
packages/devextreme/js/__internal/grids/grid_core/columns_controller/m_columns_controller.ts
Outdated
Show resolved
Hide resolved
Alyar666
previously approved these changes
Feb 13, 2026
e2e/testcafe-devextreme/tests/dataGrid/common/grouping/grouping.ts
Outdated
Show resolved
Hide resolved
packages/devextreme/js/__internal/grids/grid_core/columns_controller/m_columns_controller.ts
Outdated
Show resolved
Hide resolved
fe70ac2 to
89f1310
Compare
89f1310 to
fe2f3b7
Compare
Alyar666
previously approved these changes
Feb 13, 2026
packages/devextreme/js/__internal/grids/grid_core/columns_controller/m_columns_controller.ts
Show resolved
Hide resolved
This reverts commit ab04fa6.
packages/devextreme/js/__internal/grids/grid_core/columns_controller/m_columns_controller.ts
Show resolved
Hide resolved
dmirgaev
approved these changes
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…from dataSource (T1321187, T1308536)